
package clientapp;

import javax.microedition.lcdui.*;

/**
 *
 */
public class SelectieList extends Form implements CommandListener {
    
    private ControllerMIDlet midlet;
    
    /**
     * constructor
     */
    public SelectieList(ControllerMIDlet midlet) {
        super("Bekijk opleiding");
        this.midlet = midlet;
       
        try {
            // Set up this list to listen to command events
            setCommandListener(this);
            // Add the Back command
            addCommand(new Command("back", Command.BACK, 1));
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
    
    /**
     * Called when action should be handled
     */
    public void commandAction(Command command, Displayable displayable) {
        if (command.getCommandType() == Command.BACK) {
            
            midlet.getoplView();
            this.deleteAll();
        }
        
    }

   

}
